<?php

class Default_Form_Story extends Zend_Form {

    public function init() {
        $this->setAction('')->setMethod('post');

        $title = $this->createElement('text', 'txtTitle', array('label' => 'Tên truyện: '));
        $category = $this->createElement('text', 'txtCategory', array('label' => 'Thể loại: '));
        $content = $this->createElement('textarea', 'txtContent', array('label' => 'Nội dung: '));

        $this->addElement($title)
                ->addElement($category)
                ->addElement($content)
                ->addElement('submit', 'frmStory', array('label' => 'Lưu'));
    }

}